package src

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"net/http"
)

func BindUrl(ctx *gin.Context) {
	var user User
	err := ctx.ShouldBindUri(&user)
	fmt.Println(err)
	fmt.Println(user)
	if err != nil {
		ctx.String(http.StatusNotFound, "绑定失败！")
	} else {
		ctx.String(http.StatusOK, "url绑定成功：%+v", user)
	}

}
